package com.xs.service.impl;

import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.xs.dao.ArticleDao;
import com.xs.entity.Article;
import com.xs.service.ArticleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ArticleServiceImpl extends ServiceImpl<ArticleDao, Article> implements ArticleService {

    @Autowired
    private ArticleDao articleDao;

    @Override
    public List<Article> selectCollectionArticle(Integer uid) {
        return articleDao.selectCollectionArticle(uid);
    }

    @Override
    public List<Article> findUsersArticleBynickname(Integer uid) {
        return articleDao.findUsersArticleBynickname(uid);
    }

    @Override
    public List<Article> recommandArticle(Integer tid) {
            return articleDao.recommandArticle(tid);
    }


    @Override
    public List<Article> reArticle() {
        return articleDao.reArticle();
    }

    @Override
    public List<Article> announceArticle() {
        return articleDao.announceArticle();
    }
}
